<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/11/2
 * Time: 16:48
 * Project name: PHPTEST
 * File name: 2.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */
ob_start();
echo <<<EOF
<!doctype html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<h1 class="h1">hello world </h1>
<h1 class="h1">hello world </h1>
<h1 class="h1">hello world </h1>
<h1 class="h1">hello world </h1>
</body>
</html>
EOF;
//$cont = ob_get_contents();
//$cont = ob_get_flush();
$cont = ob_get_clean();
//ob_end_clean();
//ob_end_flush();
echo $cont;
function getHtml($buffer)
{
}

?>